home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / basic / 19 / setup.exe / Rar.txt < prev    next >
Encoding:
Text File  |  2001-01-26  |  37.0 KB  |  1,028 lines

  1.                              User's Manual
  2.                              ~~~~~~~~~~~~~
  3.                      RAR 2.80 32-bit console version
  4.                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5.  
  6.                        =-=-=-=-=-=-=-=-=-=-=-=-=-=-
  7.                        Welcome to the RAR Archiver!
  8.                        -=-=-=-=-=-=-=-=-=-=-=-=-=-=
  9.  
  10.  Introduction
  11.  ~~~~~~~~~~~~
  12.  
  13.     RAR is a powerful tool which allows you to manage and control archive
  14.   files. The archive is usually a regular file, which name has a ".rar"
  15.   suffix.
  16.  
  17.   RAR features include:-
  18.  
  19.     *  Highly sophisticated, original compression algorithm
  20.     *  Special compression algorithm optimized for multimedia data
  21.     *  Better compression than similar tools, using 'solid' archiving
  22.     *  Authenticity verification (registered version only)
  23.     *  Self-extracting archives and volumes (SFX)
  24.     *  Ability to recover physically damaged archives
  25.     *  Locking, password, file order list, file security & more ...
  26.  
  27.  
  28.  Configuration file
  29.  ~~~~~~~~~~~~~~~~~~
  30.  
  31.   RAR for Unix and BeOS read configuration information from the file
  32.   .rarrc in the user's home directory (stored in HOME environment variable)
  33.   or in /etc directory.
  34.  
  35.   RAR for Windows reads configuration information from the file rar.ini,
  36.   placed in the same directory as the rar.exe file.
  37.  
  38.   This file may contain the following string:
  39.  
  40.   switches=<any RAR switches, separated with a space>
  41.  
  42.  
  43.  Environment variable
  44.  ~~~~~~~~~~~~~~~~~~~~
  45.  
  46.     Default parameters may be added to the RAR command line by establishing
  47.     an environment variable "RAR".
  48.  
  49.     For instance, in UNIX following lines may be added to your profile:
  50.  
  51.       RAR='-s -md1024'
  52.       export RAR
  53.  
  54.     RAR will use this string as default parameters in the command line and
  55.     will create "solid" archives with 1024 KB sliding dictionary size.
  56.  
  57.     RAR handles options with priority as following:
  58.  
  59.        command line switches                   highest priority
  60.        switches in the RAR variable            lower priority
  61.        switches saved in configuration file    lowest priority
  62.  
  63.  
  64.  Log file
  65.  ~~~~~~~~
  66.  
  67.   If the switch -ilog is specified in the command line or configuration
  68.   file, RAR will write informational messages, concerning errors
  69.   encountered while processing archives, to a log file.  In Unix and BeOS
  70.   this file is named .rarlog and placed in the user's home directory.
  71.   In Windows it is named rar.log and placed in the same directory as
  72.   the rar.exe file.
  73.  
  74.  
  75.  The file order list for solid archiving - rarfiles.lst
  76.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  77.  
  78.   rarfiles.lst contains user-defined file list which tells RAR
  79.   the order to add files to a solid archive. It may contain file
  80.   names, wildcards and special entry - $default. The default
  81.   entry defines the place in order list for files not matched
  82.   with other entries in this file. The comment character is ';'.
  83.  
  84.   In Windows this file should be placed in the same directory as RAR,
  85.   in Unix and BeOS - to the user's home directory or to /etc.
  86.  
  87.   Tips to provide improved compression and speed of operation:
  88.  
  89.   - similar files should be grouped together in the archive;
  90.   - frequently accessed files should be placed at the beginning.
  91.  
  92.  
  93.  RAR command line syntax
  94.  ~~~~~~~~~~~~~~~~~~~~~~~
  95.  
  96.  Syntax
  97.  
  98.     RAR <command>  [ -<switches> ]  <archive>  [ <@listfiles...> ]
  99.         [ <files...> ]  [ <path_to_extract\> ]
  100.  
  101.     Specify empty listfile name to read names from stdin
  102.  
  103.  Description
  104.  
  105.     Command line options (commands and switches) provides control of
  106.     creating and managing archives with RAR. The command is a string (or a
  107.     single letter) which commands RAR to perform a corresponding action.
  108.     Switches are designed to modify the way RAR performs the action. Other
  109.     parameters are archive name and files to be archived into or extracted
  110.     from the archive.
  111.  
  112.     In a UNIX environment you need to quote wildcards to avoid them being
  113.     processed by RAR itself. For example, this command will extract
  114.     *.asm files from RAR archives in current path:
  115.  
  116.        rar e '*.rar' '*.asm'
  117.  
  118.  
  119.     Command could be any of the following:
  120.  
  121.     a       Add files to archive.
  122.  
  123.             Example:
  124.  
  125.             create or update existent archive myarch, adding all files
  126.             in the current directory
  127.  
  128.             rar a myarch
  129.  
  130.  
  131.     c       Add archive comment. Comments are displayed while the archive is
  132.             being processed. Comment length is limited to 62000 bytes
  133.  
  134.             Examples:
  135.  
  136.             rar c distrib.rar
  137.  
  138.             Also comments may be added from a file:
  139.  
  140.             rar c -zinfo.txt dummy
  141.  
  142.  
  143.     cf      Add files comment. File comments are displayed when the 'v'
  144.             command is given. File comment length is limited to 32767 bytes.
  145.  
  146.             Example:
  147.  
  148.             rar cf bigarch *.txt
  149.  
  150.  
  151.     cw      Write archive comment to specified file.
  152.  
  153.             Example:
  154.  
  155.             rar cw oldarch comment.txt
  156.  
  157.  
  158.     d       Delete files from archive. Note, if the processing of this
  159.             command resulted in removing all the files from the archive, the
  160.             empty archive would removed.
  161.  
  162.  
  163.     e       Extract files to current directory.
  164.  
  165.  
  166.     f       Freshen files in archive. Updates those files changed since they
  167.             were packed to the archive. This command will not add new files
  168.             to the archive.
  169.  
  170.  
  171.     k       Lock archive. Any command which intends to change the archive
  172.             will be ignored.
  173.  
  174.             Example:
  175.  
  176.             rar k final.rar
  177.  
  178.  
  179.     l[t]    List contents of archive [technical]. Files are listed as with
  180.             the 'v' command with the exception of the file path. i.e. only
  181.             the file name is displayed. Optional technical information is
  182.             displayed when 't' modifier is used.
  183.  
  184.  
  185.     m[f]    Move to archive [files only]. Moving files and directories
  186.             results in the files and directories being erased upon
  187.             successful completion of the packing operation. Directories will
  188.             not be removed if 'f' modifier is used and/or '-ed' switch is
  189.             applied.
  190.  
  191.  
  192.     p       Print file to stdout.
  193.  
  194.  
  195.     r       Repair archive. Archive repairing is performed in two stages.
  196.             First, the damaged archive is searched for a recovery record
  197.             (see 'rr' command). If the archive contains a recovery record
  198.             and if the portion of the damaged data is continuous and less
  199.             than N*512 bytes, where N is number of recovery sectors placed
  200.             into the archive, the chance of successful archive
  201.             reconstruction is very high. When this stage has completed, a
  202.             new archive will be created, called _RECOVER.RAR.
  203.  
  204.             If a broken archive does not contain a recovery record or if
  205.             the archive is not completely recovered due to major damage, a
  206.             second stage is performed. During this stage only the archive
  207.             structure is reconstructed and it is impossible to recover
  208.             files which fail the CRC validation, it is still possible to
  209.             recover undamaged files which were inaccessible due to the
  210.             broken archive structure. Mostly this is useful for non-solid
  211.             archives.
  212.  
  213.             When the second stage is completed, the reconstructed archive
  214.             will be saved as _RECONST.RAR.
  215.  
  216.             While the recovery is in progress, RAR may prompt the user for
  217.             assistance when a suspicious file is detected.
  218.  
  219.                       Suspicious entry
  220.  
  221.               Name:  <possibly filename>
  222.               Size:  <size>    Packed: <compressed size>
  223.  
  224.                       Add it: Yes/No/All
  225.  
  226.             Answer 'y' to add this entry to the file _RECOVER.RAR.
  227.  
  228.             Example:
  229.  
  230.             rar r buggy.rar
  231.  
  232.  
  233.     rr[N]   Add data recovery record. Optionally, redundant information
  234.             (recovery record) may be added to an archive.  This will cause
  235.             a small increase of the archive size and helps to recover
  236.             archived files in case of floppy disk failure or data losses of
  237.             any other kind. A recovery record contains up to 32768 recovery
  238.             sectors. The number of sectors may be specified directly in the
  239.             'rr' command (N = 1, 2 .. 32768) or if it is not specified by the
  240.             user it will be selected automatically according to the archive
  241.             size: a size of the recovery information will be about 1%
  242.             of the total archive size, usually allowing the recovery of
  243.             up to 0.6% of the total archive size of continuously damaged data.
  244.  
  245.             It is also possible to specify the recovery record size in
  246.             percents to the archive size. Just append the percent character
  247.             to the command parameter. For example:
  248.  
  249.             rar rr3% arcname
  250.  
  251.             If data are damaged continuously then each rr-sector helps to
  252.             recover 512 bytes of damaged information. This value may be
  253.             lower in cases of multiple damage.
  254.  
  255.             The size of the recovery record may be approximately determined
  256.             by the formula <archive size>/256 + <number of recovery
  257.             sectors>*512 bytes.
  258.  
  259.  
  260.     s[name] Convert archive to SFX. The archive is merged with SFX-module
  261.             (using a module in file default.sfx or specified in the switch).
  262.             In the Windows version default.sfx should be placed in the
  263.             same directory as the rar.exe, in Unix and BeOS - in the user's
  264.             home directory, in /usr/lib or /usr/local/lib.
  265.  
  266.     s-      Remove SFX module from the already existing SFX archive.
  267.             RAR creates a new archive without SFX module, the original
  268.             SFX archive is not deleted.
  269.  
  270.     t       Test archive files. This command performs a dummy file
  271.             extraction, writing nothing to the output stream, in order to
  272.             validate the specified file(s).
  273.  
  274.             Examples:
  275.  
  276.             Test archives in current directory:
  277.  
  278.             rar t *
  279.  
  280.             or for Unix:
  281.  
  282.             rar t '*'
  283.  
  284.             User may test archives in all sub-directories, starting
  285.             with the current path:
  286.  
  287.             rar t -r *
  288.  
  289.             or for Unix:
  290.  
  291.             rar t -r '*'
  292.  
  293.  
  294.     u       Update files in archive. Adds files not already in the archive
  295.             and updates files changed since they were packed to the archive.
  296.  
  297.  
  298.     v[t]    Verbosely list the contents of archive [technical].
  299.             Files are listed using the format: full pathname, file comment,
  300.             original and compressed size, compression ratio, last update
  301.             date and time, attributes, CRC, compression method and minimum
  302.             RAR version required to extract. Optional technical information
  303.             is displayed when 't' modifier is used.
  304.  
  305.             To list the contents of all archive volumes, use an asterisk
  306.             ('*') in place of the archive file extension or use the '-v'
  307.             switch.
  308.  
  309.             Example:
  310.  
  311.             direct archive content list (technical) to a file
  312.  
  313.             rar vt bambam >bambam.lst
  314.  
  315.  
  316.     x       Extract files with full path.
  317.  
  318.             Example:
  319.  
  320.             rar x -av- -c- dime 10cents.txt
  321.  
  322.             extract specified file to current path. AV check and comment
  323.             show are disabled.
  324.  
  325.  
  326.     Switches (used in conjunction with a command):
  327.  
  328.  
  329.     -?      Display help on commands and switches. The same as when none
  330.             or an illegal command line option is entered.
  331.  
  332.  
  333.     --      Stop switches scanning
  334.  
  335.             This switch tells to RAR that there is no more switches
  336.             in the command line. It could be useful, if either archive
  337.             or file name starts from '-' character. Without '--' switch
  338.             such name would be treated as switch.
  339.  
  340.             Example:
  341.  
  342.             add all files from the current directory to the solid archive
  343.             '-StrangeName'
  344.  
  345.             RAR a -s -- -StrangeName
  346.  
  347.     -ac     Clear Archive attribute after compression or extraction
  348.             (Windows version only).
  349.  
  350.  
  351.     -ag[format]
  352.             Generate archive name using the current date and time.
  353.  
  354.             Appends the current date string to an archive name when
  355.             creating an archive. Useful for daily backups.
  356.  
  357.             Format of the appending string is defined by the optional
  358.             "format" parameter or by "YYYYMMDDHHMMSS" if this parameter
  359.             is absent. Format string may include the following characters:
  360.  
  361.             Y   - year
  362.             M   - month
  363.             MMM - month name as text string (Jan, Feb, etc.)
  364.             W   - a week number (a week starts with Monday)
  365.             A   - day of week number (Monday is 1, Sunday - 7)
  366.             D   - day of month
  367.             H   - hours
  368.             M   - minutes (treated as minutes if encountered after hours)
  369.             S   - seconds
  370.  
  371.             All other characters are added to an archive name without
  372.             changes.
  373.  
  374.             Examples:
  375.  
  376.             1) use the default YYYYMMDDHHMMSS format
  377.  
  378.                rar a -ag backup
  379.  
  380.             2) use DD-MMM-YY format
  381.  
  382.                rar a -agDD-MMM-YY backup
  383.  
  384.             3) use YYYYMMDDHHMM format
  385.  
  386.                rar a -agYYYYMMDDHHMM backup
  387.  
  388.             4) use YYYY-WW-A format
  389.  
  390.                rar a -agYYYY-WW-A backup
  391.  
  392.  
  393.     -ao     Add files with Archive attribute set
  394.             (Windows version only).
  395.  
  396.             Example:
  397.  
  398.             add all disk C: files with Archive attribute set
  399.             to the 'f:backup' and clear files Archive attribute
  400.  
  401.             rar a -r -ac -ao f:backup c:\*.*
  402.  
  403.  
  404.     -ap     Set path inside archive. This path is merged to file
  405.             names when adding files to an archive and removed
  406.             from file names when extracting.
  407.  
  408.             For example, if you wish to add the file 'readme.txt'
  409.             to the directory 'DOCS\ENG' of archive 'release',
  410.             you may run:
  411.  
  412.             rar a -apDOCS\ENG release readme.txt
  413.  
  414.             or to extract 'ENG' to the current directory:
  415.  
  416.             rar x -apDOCS release DOCS\ENG\*.*
  417.  
  418.  
  419.     -as     Synchronize archive contents
  420.  
  421.             If this switch is used when archiving, those archived files
  422.             which are not present in the list of the currently added
  423.             files, will be deleted from archive. It is convenient to use
  424.             this switch in combination with -u (update) to synchronize
  425.             contents of an archive and an archiving directory.
  426.  
  427.             For example, after the command:
  428.  
  429.             rar a -u -as backup sources\*.cpp
  430.  
  431.             the archive 'backup.rar' will contain only *.cpp files
  432.             from directory 'sources', all other files will be deleted
  433.             from the archive. It looks similar to creating a new archive,
  434.             but with the one important exception: if no files are
  435.             modified since a last backup, the operation is performed
  436.             much faster than creation of a new archive.
  437.  
  438.  
  439.     -av     Put authenticity verification (registered versions only).
  440.             RAR will put, in every new and updated archive, information
  441.             concerning the creator, last update time and archive name.
  442.  
  443.             If an archive, containing authenticity verification, is being
  444.             modified and this switch is not specified, the authenticity
  445.             verification information will be removed.
  446.  
  447.             When extracting, testing, listing or updating and archive with
  448.             the '-av' switch, RAR will perform integrity validation and
  449.             display the message:
  450.  
  451.               Verifying authenticity information ...
  452.  
  453.             In the case of successful authenticity verification, the message
  454.             'Ok', creator name and last update information will be
  455.             displayed. In the case of authenticity verification failure, the
  456.             message 'FAILED' will be displayed.
  457.  
  458.             The Authenticity Verification feature, '-av,' is recommended for
  459.             use with archives in a software distribution environment.
  460.  
  461.             In order to enable the Authenticity verification feature, the
  462.             program MUST be registered. Please contact your local
  463.             distribution site or the world-wide distribution center.
  464.  
  465.  
  466.     -av-    Disable authenticity verification checking or adding.
  467.  
  468.  
  469.     -cfg-   Disable read configuration and environment.
  470.  
  471.  
  472.     -cl     Convert file names to lower case.
  473.  
  474.  
  475.     -cu     Convert file names to upper case.
  476.  
  477.  
  478.     -c-     Disable comments show.
  479.  
  480.  
  481.     -df     Delete files after archiving
  482.  
  483.             Move files to archive. This switch in combination with
  484.             the command "A" performs the same action as the command "M".
  485.            
  486.  
  487.     -dh     Open shared files
  488.  
  489.             Allows to process files opened by other applications
  490.             for writing.
  491.  
  492.             This option could be dangerous, because it allows
  493.             to archive a file, which at the same time is modifying
  494.             by an other application, so use it carefully.
  495.  
  496.  
  497.     -ds     Do not sort files while adding to a solid archive.
  498.  
  499.  
  500.     -ed     Do not add empty directories
  501.  
  502.             This switch indicates that empty directories are not to be
  503.             stored in the created archive.
  504.  
  505.  
  506.     -ee     Do not process extended attributes
  507.  
  508.             Disables saving and restoring extended file attributes.
  509.             Only for OS/2 and BeOS versions.
  510.  
  511.  
  512.     -ep     Exclude paths from names. This switch enables files to be added
  513.             to an archive without including the path information. This
  514.             could, of course, result in multiple files existing in the
  515.             archive with the same name.
  516.  
  517.  
  518.     -ep1    Exclude base dir from names. Do not store the path entered in
  519.             the command line.
  520.  
  521.             Example:
  522.  
  523.             all files and directories from the directory tmp will be added
  524.             to the archive 'test', but the path in archived names will not
  525.             include 'tmp\'
  526.  
  527.             rar a -ep1 -r test tmp\*
  528.  
  529.             This is equivalent to the commands:
  530.  
  531.             cd tmp
  532.             rar a -r ..\test
  533.             cd ..
  534.  
  535.  
  536.     -ep2    Expand paths to full. Store full file paths (except a drive
  537.             letter and leading path separator) when archiving.
  538.     
  539.  
  540.     -e<atr> Specifies file exclude attributes mask. <atr> is a number in the
  541.             decimal, octal (with leading '0') or hex (with leading '0x')
  542.             format. If result of bitwise AND between <atr> and file
  543.             attributes is nonzero, then file would not be added to archive.
  544.  
  545.             In the Windows version also is possible to use instead of
  546.             digital mask symbols D, S, H, A and R to denote directories
  547.             and files with system, hidden, archive and read-only attributes.
  548.             The order in which the attributes are given is not significant.
  549.  
  550.  
  551.     -f      Freshen files. May be used with archive extraction or creation.
  552.             The command string "a -f" is equivalent to the command 'f', you
  553.             could also use the switch '-f' with the commands 'm' or 'mf'. If
  554.             the switch '-f' is used with the commands 'x' or 'e', then only
  555.             old files would be replaced with new versions extracted from the
  556.             archive.
  557.  
  558.  
  559.     -idp    Disable percentage indicator.
  560.  
  561.             May be useful when redirecting output to a file.
  562.  
  563.  
  564.     -ierr   Send all messages to stderr.
  565.  
  566.  
  567.     -ilog   Log errors to file (registered version only).
  568.  
  569.  
  570.     -inul   Disable all messages.
  571.  
  572.  
  573.     -isnd   Enable sound.
  574.  
  575.  
  576.     -k      Lock archive. Any command which intends to change the archive
  577.             will be ignored.
  578.  
  579.  
  580.     -kb     Keep broken extracted files.
  581.  
  582.             RAR, by default, deletes files with CRC errors after
  583.             extraction. The switch -kb specifies that files with
  584.             CRC errors should not be deleted.
  585.  
  586.  
  587.     -m<n>   Set compression method:
  588.  
  589.        -m0   store     do not compress file when adding to archive
  590.        -m1   fastest   use fastest method (less compressive)
  591.        -m2   fast      use fast compression method
  592.        -m3   normal    use normal (default) compression method
  593.        -m4   good      use good compression method (more
  594.                        compressive, but slower)
  595.        -m5   best      use best compression method (slightly more
  596.                        compressive, but slowest)
  597.  
  598.             By default RAR uses -m3 method (Normal compression).
  599.  
  600.  
  601.     -md<n>  Select dictionary size <n> in KB. Must be 64, 128, 256, 512 or
  602.             1024 or a letter 'a', 'b', 'c', 'd' or 'e' respectively.
  603.  
  604.             The sliding dictionary is a special memory area used by the
  605.             compression algorithm. If the size of the file being compressed
  606.             (or the total files size in the case of a solid archive) is
  607.             greater than the dictionary size, then increasing the dictionary
  608.             size will generally increase compression ratio, decrease packing
  609.             speed and increase memory requirements.
  610.  
  611.             Default sliding dictionary size in 32-bit versions of RAR is 1024
  612.             KB. In RAR versions for Unix, Windows and other 32-bit platforms
  613.             it is possible to select five different sizes: 64, 128, 256, 512
  614.             or 1024 KB. Besides, speed of extraction in these versions does
  615.             not depend upon dictionary size. In 16-bit version RAR for DOS
  616.             the sliding dictionary size is fixed and equal to 64 KB.
  617.             Though RAR for DOS provides extracting files from large
  618.             dictionary archives.
  619.  
  620.             The amount of memory required to create large dictionary
  621.             archives is determined as 5*<dictionary size>+2560KB. About 1 Mb
  622.             is required for extraction and 5*<dictionary size>+3584KB to
  623.             update solid archives.
  624.  
  625.             RAR for DOS can extract from large dictionary archives using
  626.             conventional, EMS and disk memory. If no EMS or disk
  627.             cache is available, the operation may slow down significantly. RAR
  628.             for DOS cannot convert large dictionary archives to SFX with the
  629.             default SFX module and cannot update such solid archives.
  630.  
  631.             Example:
  632.  
  633.             RAR a -s -mdd sources *.asm
  634.                 or
  635.             RAR a -s -md512 sources *.asm
  636.  
  637.             Will create a solid archive using a 512 KB dictionary.
  638.  
  639.     -mm[f]  Multimedia compression [force]. Enables a special multimedia
  640.             compression algorithm. It is intended to compress digital audio
  641.             data containing up to four 8-bit or two 16-bit channels. It
  642.             works well with  true color (24-bit) bitmaps as well.
  643.             Improvement in the compression ratio up to 30% over the normal
  644.             compression may be achieved.
  645.  
  646.             When archiving file in the multimedia mode RAR performs
  647.             intelligent data analysis and may use, for different parts of
  648.             the file, general or multimedia compression depending on which
  649.             is more suitable. Such analysis allows optimum performance when
  650.             different data types are merged in the same file. The 'f'
  651.             modifier forces the multimedia compression to be used for the
  652.             whole file; it may help when certain multimedia files are to be
  653.             compressed, but in most cases only increases archive size.
  654.  
  655.             Both the -m<N> "Set compression method" and -s "Create solid
  656.             archive" switches can be used with multimedia compression,
  657.             but they are in effect for those file parts where the general
  658.             algorithm applies.
  659.  
  660.             If -mm is used with non-multimedia data, the compression ratio
  661.             is usually unchanged in comparison with the general method, but
  662.             due to multimedia analysis overhead, the packing speed is always
  663.             slower. The usage of -mm is not recommended with normal data
  664.             files.
  665.  
  666.             Example:
  667.  
  668.             rar a -m5 -s -mm All_My_Songs.rar *.wav
  669.  
  670.             Use the tightest compression method, solid archiving and
  671.             multimedia compression with smart analysis, which method
  672.             should be applied for particular data.
  673.  
  674.  
  675.     -ol     Save symbolic links as the link instead of the file.
  676.             Unix and BeOS versions only.
  677.  
  678.  
  679.     -os     Save NTFS streams. Win32 version only.
  680.  
  681.             This switch has meaning only for NTFS file system under
  682.             Windows NT and allows to save alternative data streams
  683.             associated with a file. It is especially important under
  684.             Windows 2000, which uses streams to keep some file dependent
  685.             information like file descriptions. If you use RAR to backup
  686.             your NTFS disks, it is recommended to specify this switch.
  687.  
  688.  
  689.     -ow     Use this switch when archiving to save file security
  690.             information and when extracting to restore it.
  691.  
  692.             Unix and BeOS RAR versions save file owner and group
  693.             when using this switch.
  694.  
  695.             Win32 version stores owner, group, file permissions and
  696.             audit information, but only if you have necessary privileges
  697.             to read them. Note that only NTFS file system supports
  698.             file based security under Windows.
  699.  
  700.     -o+     Overwrite existing files.
  701.  
  702.  
  703.     -o-     Do not overwrite existing files.
  704.  
  705.  
  706.     -p<p>   Encrypt files with the string <p> as password while archiving.
  707.             The password is case-sensitive. If you omit the password on the
  708.             command line, you will be prompted with message "Enter password".
  709.  
  710.             Example:
  711.  
  712.             rar a -pmyhoney secret1 *.txt
  713.  
  714.             add files *.txt and encrypt them with password "myhoney".
  715.  
  716.  
  717.     -p-     Do not query password
  718.  
  719.  
  720.     -r      Recurse subdirectories. May be used with commands:
  721.             a, u, f, m, x, e, t, p, v, l, c, cf and s.
  722.  
  723.             When used with the commands 'a', 'u', 'f', 'm' will process
  724.             files in all sub-directories as well as the current working
  725.             directory.
  726.  
  727.             When used with the commands x, e, t, p, v, l, c, cf or s will
  728.             process all archives in sub-directories as well as the current
  729.             working directory.
  730.  
  731.  
  732.     -r0     Similar to -r, but when used with the commands 'a', 'u', 'f',
  733.             'm' will recurse subdirectories only for those names, which
  734.             include wildcard characters '*' and '?'
  735.  
  736.  
  737.     -ri<p>[:<s>]
  738.             Set priority and sleep time. Available only in RAR for Windows.
  739.             This switch is used to regulate system load by RAR in a
  740.             multitasking environment. The possible task priority values are
  741.             from 0 to 15. When <p> is equal to 0, the default task priority
  742.             is used, 1 corresponding to the lowest task priority, 15 - to
  743.             the highest. The sleep time <s> is a value from 0 to 1000
  744.             (milliseconds). This is the period of time that RAR will give
  745.             back to system after every read or write during the packing or
  746.             unpacking operation. The sleep time setting is useful when
  747.             several tasks with the same priority are running in the system.
  748.  
  749.             Example:
  750.  
  751.             execute RAR with default priority and 10 ms of sleep after
  752.             each read or write
  753.  
  754.             rar a -r -sfx -ri0:10 backup *.*
  755.  
  756.  
  757.     -rr[N]  Add a data recovery record. This switch is used when creating or
  758.             modifying archive to add a data recovery record to the archive.
  759.             See the 'rr[N]' command description for details.
  760.  
  761.  
  762.     -s      Create solid archive. Solid is a special archive type. Please
  763.             refer to the appendix "Glossary" for further information.
  764.  
  765.             Example:
  766.  
  767.             create solid archive sources.rar with 512 KB dictionary,
  768.             recursing all directories, starting with the current directory.
  769.             Add only .asm files:
  770.  
  771.             rar a -s -md512 sources.rar *.asm -r
  772.  
  773.  
  774.     -s<N>   Create solid groups using file count
  775.  
  776.             Similar to -s, but reset solid statistics after compressing
  777.             <N> files. Usually decreases compression, but also
  778.             decreases losses in case of solid archive damages.
  779.  
  780.  
  781.     -sd     Create dependent solid volumes
  782.  
  783.             Similar to -s, but shares solid statistics among volumes.
  784.             Ignored, if used to create non-volume archive.
  785.  
  786.             By default RAR tries to reset solid statistics as soon
  787.             as possible when starting a new volume and this switch
  788.             overrides such behaviour. It slightly increases compression,
  789.             but significantly reduces chances to extract a part of data
  790.             if one of solid volumes in volume set was lost or damaged.
  791.  
  792.  
  793.     -se     Create solid groups using extension
  794.  
  795.             Similar to -s, but reset solid statistics if file extension
  796.             is changed. Usually decreases compression, but also
  797.             decreases losses from solid archive damages.
  798.  
  799.  
  800.     -s-     Disable solid archiving
  801.  
  802.  
  803.     -sfx[name]
  804.             Create SFX archives. If this switch is used when creating a new
  805.             archive, a Self-Extracting archive (using a module in file
  806.             default.sfx or specified in the switch) would be created.
  807.             In the Windows version default.sfx should be placed in the
  808.             same directory as the rar.exe, in Unix and BeOS - in the user's
  809.             home directory, in /usr/lib or /usr/local/lib.
  810.  
  811.             Example:
  812.  
  813.             rar a -sfxwincon.sfx myinst
  814.  
  815.             create SelF-eXtracting (SFX) archive using wincon.sfx
  816.             SFX-module.
  817.  
  818.  
  819.     -tk     Keep original archive date. Prevents RAR from modifying the
  820.             archive date when changing an archive.
  821.  
  822.  
  823.     -tl     Set archive time to newest file. Forces RAR to set the date of a
  824.             changed archive to the date of the newest file in the archive.
  825.  
  826.  
  827.     -tn<time>
  828.             Process files newer than the specified time period. Format
  829.             of the time string is:
  830.  
  831.             [<ndays>d][<nhours>h][<nminutes>m][<nseconds>s]
  832.  
  833.             For example, use switch -tn15d to process files newer
  834.             than 15 days and -tn2h30m to process files newer than
  835.             2 hours 30 minutes.
  836.  
  837.  
  838.     -to<time>
  839.             Process files older than the specified time period. Format
  840.             of the switch is the same as -tn<time>.
  841.  
  842.  
  843.     -u      Update files. May be used with archive extraction or creation.
  844.             The command string "a -u" is equivalent to the command 'u', you
  845.             could also use the switch '-u' with the commands 'm' or 'mf'. If
  846.             the switch '-u' is used with the commands 'x' or 'e', then files
  847.             not present on the disk and files newer than their copies on the
  848.             disk would extracted from the archive.
  849.  
  850.  
  851.     -v<size>[k|b|f|m|M]
  852.             Create volumes with size=<size>*1000 [*1024 | *1].
  853.             By default this switch uses <size> as thousands (1000) of bytes
  854.             (not 1024 x bytes). You may also enter the size in kilobytes
  855.             using the symbol 'k', in bytes using the symbol 'b',
  856.             in megabytes - 'm', in millions of bytes - 'M' or select
  857.             one of several predefined values using the symbol 'f'
  858.             following the numerical value. Predefined values can be
  859.             360, 720, 1200, 1440 or 2880 and replaced with corresponding
  860.             floppy disk size.
  861.  
  862.             If the size is omitted, autodetection will be used.
  863.  
  864.             If volumes are created on removable media, then after
  865.             the first volume has been created, user will be prompted
  866.             with:
  867.  
  868.               Create next volume: Yes/No/All
  869.  
  870.             At this moment in time, you should change the disks. Answering
  871.             'A' will cause all volumes to be created without a pause.
  872.  
  873.             The first volume file in a multi-volume set has the extension
  874.             .RAR, following volumes are numbered from .R00 to .R99.
  875.  
  876.             When extracting or testing a multi-volume archive you must use
  877.             only the first volume name (*.RAR). If there is no next volume
  878.             on the drive and the disk is removable, the user will be
  879.             prompted with:
  880.  
  881.              Insert disk with <next volume name>
  882.  
  883.             Insert the disk with the correct volume and press any key.
  884.  
  885.             If while extracting, the next volume is not found and volumes
  886.             are placed on the non-removable disk, RAR will abort with
  887.             the error message:
  888.  
  889.              Cannot find <volume name>
  890.  
  891.             Archive volumes may not be modified. The commands 'd', 'f', 'u',
  892.             's' can not be used with Multi-volume sets. The command 'a' may
  893.             be used only for the creation of a new multi-volume sequence.
  894.  
  895.             It is possible, although unlikely, that the file size, of a file
  896.             in a multi-volume set, could be greater than it's uncompressed
  897.             size. This is due to the fact that 'storing' (no compression if
  898.             size increases) cannot be enabled for multi-volume sets.
  899.  
  900.             Archive volumes may be Self-Extracting (SFX). Such an archive
  901.             should be created using both the '-v' and '-sfx' switches.
  902.  
  903.             Example:
  904.  
  905.             create archive in volumes of fixed size:
  906.  
  907.             rar a -s -v1440 floparch.rar *.*
  908.  
  909.             will create solid volumes of size 1440000 bytes.
  910.  
  911.     -vd     Erase disk contents before creating volume
  912.  
  913.             All files and directories on the target disk will be erased
  914.             when '-vd' is used.  The switch applies only to removable
  915.             media, the hard disk cannot be erased using this switch.
  916.  
  917.     -vp     Pause before each volume
  918.  
  919.             By default RAR asks for confirmation before creating or 
  920.             unpacking next volume only for removable drives.
  921.             This switch forces RAR to ask such confirmation always.
  922.             It can be useful if disk space is limited and you wish
  923.             to copy each volume to another media immediately after
  924.             creating.
  925.  
  926.     -w<p>   Assign work directory as <p>. This switch may be used to assign
  927.             the directory for temporary files.
  928.  
  929.  
  930.     -x<f>   Exclude specified file <f>, wildcards may be used. You may
  931.             specify the switch '-x' several times:
  932.  
  933.             Example:
  934.  
  935.             rar a -r -x*.bak -x*.rar rawfiles
  936.  
  937.             *.bak and *.rar files will not be added to rawfiles
  938.  
  939.  
  940.     -x@<lf> Exclude files using specified list file.
  941.  
  942.             Example:
  943.  
  944.             rar a -x@exlist.txt arch *.exe
  945.  
  946.  
  947.     -y      Assume Yes on all queries.
  948.  
  949.  
  950.     -z<f>   Read archive comment from file <f>.
  951.  
  952.  
  953.  Limitations
  954.  ~~~~~~~~~~~
  955.  
  956.     Pathname is limited to 259 symbols.
  957.  
  958.     Maximum archive comment length is 62000 bytes.
  959.  
  960.     Command limitations:
  961.  
  962.     The commands 'd','u','f','c','cf' will not operate with archive
  963.     volumes.
  964.  
  965.     The command 'a' cannot be used to update an archive volume, only to
  966.     create one.
  967.  
  968.  
  969.  Exit values
  970.  ~~~~~~~~~~~
  971.  
  972.     RAR exits with a zero code (0) in case of successful operation. The exit
  973.     code of non-zero means the operation is cancelled due to error:
  974.  
  975.      255   USER BREAK       User stopped the process
  976.  
  977.        8   MEMORY ERROR     Not enough memory for operation
  978.  
  979.        7   USER ERROR       Command line option error
  980.  
  981.        6   OPEN ERROR       Open file error
  982.  
  983.        5   WRITE ERROR      Write to disk error
  984.  
  985.        4   LOCKED ARCHIVE   Attempt to modify an archive previously locked
  986.                             by the 'k' command
  987.  
  988.        3   CRC ERROR        A CRC error occurred when unpacking
  989.  
  990.        2   FATAL ERROR      A fatal error occurred
  991.  
  992.        1   WARNING          Non fatal error(s) occurred
  993.  
  994.        0   SUCCESS          Successful operation (User exit)
  995.  
  996.  
  997.  Glossary
  998.  ~~~~~~~~
  999.  
  1000.     Archive      Special file containing one or more files optionally
  1001.                  compressed and/or encrypted.
  1002.  
  1003.     Compression  A method of encoding data to reduce it's size.
  1004.  
  1005.     CRC          Cyclic Redundancy Check. Mathematical method calculating
  1006.                  special checking information for data validity.
  1007.  
  1008.     SFX          Archive module used to extract files from when executed.
  1009.                  (SelF-eXtracting module), usually in the form of a .EXE
  1010.                  file.
  1011.  
  1012.     Solid        An archive packed using a special compression method which
  1013.                  sees all files as one continuous data stream. Particularly
  1014.                  advantageous when packing a large number of small files.
  1015.  
  1016.     Volume       Part of a split archive. Splitting an archive to volumes
  1017.                  allows storing them on diskettes. Solid volumes must be
  1018.                  extracted starting from first in sequence.
  1019.  
  1020.  
  1021.  
  1022.  Copyrights
  1023.  
  1024.     (c) 1993-2001 Eugene Roshal
  1025.  
  1026.  
  1027.  
  1028.